package com.swift.authority.common.constant;

/**
 * @author Administrator
 * @version 1.0
 * @description 自定义描述
 * @date 2022/06/26  9:45
 */
public enum StatusCode {
    SUCCESS(20000,"成功"),
    FAILURE(20001,"失败"),
    LOGIN_ERROR(20002,"用户名或密码错误"),
    ACCESS_ERROR(20003,"权限不足"),
    REMOTE_ERROR(20003,"远程调用失败"),
    REPE_RROR(20003,"重复操作");
    private int code;
    private String description;

    StatusCode(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
